<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xml:lang="en" lang="en">
<h:head>
    <title>
        <ui:insert name="title"/>
    </title>
    <h:outputStylesheet name="css/main.css"/>
    <h:outputScript name="scripts/shortcuts.js"/>
</h:head>
<h:body>
    <f:view locale="#{localizer.locale}">
        <ui:insert name="metadata"/>
        <h:form>
            <div style="min-height:90px;margin-bottom:3px;">
                <ui:include src="languagePanel.xhtml"/>
                <ui:include src="messagesPanel.xhtml"/>
            </div>
            <ui:insert name="body"/>
        </h:form>
    </f:view>
    <script type="text/javascript">
        function ajaxErrorsHandler() {
            // simply reload page
            location.reload(true);
        }
        window.onload=function () {
            shortcut.add("Ctrl+Alt+L",function() {
                window.location.href ="#{facesContextManager.contextPath}/content/logs/logsPage.xhtml";
            });
        };
    </script>
</h:body>
</html>